package com.hjy.cabinet.ws.controller;

import com.hjy.cabinet.ws.domain.ws.WsAnnotation;

//远程开柜测试Controller
public class CabinetController {


    //开柜测试
    @WsAnnotation(value = "openCabinet")
    public String openCabinet(String function) throws InterruptedException {
        Thread.sleep(10000);
        if("1".equals(function)){
            return "开柜成功";
        }else if("2".equals(function)) {
            return "开柜失败";
        }else if("3".equals(function)) {
            System.out.println(1 / 0);
        }

        return function;
    }


}
